package com.kaifamiao.calendar;

import java.util.Arrays;
import java.util.Comparator;
import java.util.Date;

public class TestSinaean {

    public static void main(String[] args) {

        DateHelper dh = DateHelper.getInstance();

        Sinaean[] sinaeans = new Sinaean[5];

        Date birthdate = dh.produce( 2003, 10, 20 ) ;
        sinaeans[0] = new Sinaean( "李芳" , '女', birthdate );

        birthdate = dh.produce( 2001, 8 , 15 );
        sinaeans[1] = new Sinaean( "李得" , '男', birthdate );

        Comparator<Sinaean> comparator = null ;

        Arrays.sort( sinaeans , comparator );

        // 排序后遍历 sinaeans 数组并输出每个 Sinaean实例 字符串形式
    }

}
